package com.HW.ydm;
import java.util.Scanner;

public class Student {
		public static void main(String[] args) {
			Scanner sc=new Scanner(System.in);
			STU st=new STU();
			System.out.println("请输入姓名：");
			st.setName(sc.nextLine());
			System.out.println("请输入学号：");
			st.setNo(sc.nextLine());
			System.out.println("请输入性别：");
			st.setSex(sc.nextLine());
			System.out.println("请输入年龄：");
			st.setAge(sc.nextInt());
		
			
			System.out.println("个人信息如下：");
			System.out.println("姓名："+st.getName()+"，学号："+st.getNo()+"，年龄："
			+st.getAge()+"，性别："+st.getSex());
			sc.close();
		}
}


class STU
{
	private String strName;
	private String strNo;
	private int intAge;
	private String strSex;
	
	
	public void setName(String name)
	{
		strName=name;
	}
	public String getName()
	{
		return strName;
	}
	
	public void setNo(String no)
	{
		strNo=no;
		
	}
	public String getNo()
	{
		return strNo;
	}
	
	public void setAge(int age)
	{
		intAge=age;
		
	}
	public int getAge()
	{
		return intAge;
	}
	
	public void setSex(String  sex)
	{
		strSex=sex;
	}
	public String getSex()
	{
		return strSex;
	}
	
}